/**
 * @file FloodFillCommand.hpp
 *
 * @date 25/12/2011
 * @author Tales 
 *
 */

#ifndef _MODEL_FLOODFILLCOMMAND_HPP_
#define _MODEL_FLOODFILLCOMMAND_HPP_

#include "Command.hpp"
#include <utility>

namespace yep
{
using namespace std;


/**
 * Pinta areas contíguas
 */
class FloodFillCommand: public yep::Command
{
public:
	FloodFillCommand(const pair<int,int> &pos, const Color &color_, int layer_);

	void execute(PictureState &picture);
private:
	pair<int,int>position;
};

} /* namespace yep */
#endif /* _MODEL_FLOODFILLCOMMAND_HPP_ */
